<template>
    <div class="activity"> 
        <Post v-for="(post,index) in list" :key="index" :post="post" :isGroup='true' v-lazy="post"/>
    </div>
</template>

<script>
import Post from '../common/post/Post.vue'
import axios from 'axios'
export default {
    name:'Activity',
    components:{
        Post
    },
    data() {
        return {
            list:null
        } 
    },
    props:['post'],
    mounted() { 
        // axios({
        //     url:'/body/findSuch',
        //     method:'get',
        //     params:{
        //         classsname:'活动专区',
        //         // userId:1//默认的用户id
        //     }
        // }).then(data=>{
        //     this.list = data.data.data
        //     console.log(this.list)
        // }).catch(err=>{
        //     console.log(err)
        // })
        this.list = [
            {
                bodyId: 34,
                classname: "校园生活",
                collection: 147,
                content: "组织在操场举行广场舞，进入详情查看并报名活动",
                img: "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fps.ztw8.cn%2Fwp-content%2Fuploads%2F2019%2F09%2F20190923_5d88b4caf23c2.jpg&refer=http%3A%2F%2Fps.ztw8.cn&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1651482217&t=8a09dd10861ae2570857eed70a41e991",
                imgs: `https://img0.baidu.com/it/u=1676748779,2099654948&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=335;
                https://img0.baidu.com/it/u=412557246,286453694&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=304;
                https://img0.baidu.com/it/u=3404350850,2291452676&fm=253&fmt=auto&app=138&f=JPEG?w=629&h=441
                `,
                nickname: "山东分公司",
                praise: 294,
                state: 0,
                time: "2022-02-28 19:45:31",
                userId: 11,
            },
            {
                bodyId: 34,
                classname: "跳蚤市场",
                collection: 12,
                content: "于学校湖内举行划船比赛，图片参考",
                img: "https://img1.baidu.com/it/u=1615385903,1640171271&fm=253&fmt=auto&app=138&f=JPEG?w=750&h=500",
                imgs: `https://img2.baidu.com/it/u=174531558,410255176&fm=253&fmt=auto&app=138&f=JPEG?w=700&h=467;
                https://img0.baidu.com/it/u=656796061,2646756824&fm=253&fmt=auto&app=138&f=JPEG?w=630&h=450;
                https://img2.baidu.com/it/u=4236591079,2557010582&fm=253&fmt=auto&app=120&f=JPEG?w=1024&h=576;
                https://img1.baidu.com/it/u=1700132315,3510859860&fm=253&fmt=auto&app=138&f=JPEG?w=893&h=500;
                https://img0.baidu.com/it/u=2145127875,215339635&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500;
                https://img1.baidu.com/it/u=2815413927,1659511027&fm=253&fmt=auto&app=138&f=JPEG?w=750&h=500;
                https://img2.baidu.com/it/u=1805365199,4163173288&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=667;
                https://img2.baidu.com/it/u=301679851,3715797047&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=510;
                https://img1.baidu.com/it/u=1615385903,1640171271&fm=253&fmt=auto&app=138&f=JPEG?w=750&h=500
                `,
                nickname: "未通过",
                praise: 14,
                state: 0,
                time: "2022-03-28 9:13:3",
                userId: 11,
            }
        ]
    },
}
</script>

<style>
.activity{
    background-color: #fafafa;
}
</style>